package cn.sccl.dirms.dev.service;

import cn.sccl.common.service.BaseManager;
import cn.sccl.dirms.dev.model.DataSource;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

/**
*  的Manager
* Created by liupan on 2017-06-25.
*/
public interface DataSourceManager extends BaseManager<DataSource>{

    JSONArray connect(DataSource dataSource, JSONObject params) throws Exception;

    JSONArray viewData(String key,JSONObject params) throws Exception;

    List<DataSource> queryDataByClassify(String classify);
}